<script>
	import initApp from '@/common/appInit.js';
	import checkIsAgree from '@/pages/uni-agree/utils/uni-agree.js';
	import uniIdPageInit from '@/uni_modules/uni-id-pages/init.js';
	export default {
		globalData: {
			searchText: '',
			appVersion: {},
			config: {}
		},
		onLaunch: function() {
			console.log('App Launch')
			initApp();
			uniIdPageInit()
		},
		onShow: async function() {
			// const db = uniCloud.database();
			// const user_db = db.collection('abu_user_info');
			// const user_info = await uniCloud.getCurrentUserInfo()
			// const res_d = await user_db.where({
			// 	user_id: user_info.uid
			// }).get()
			// if (res_d.result && res_d.result.data && res_d.result.data.length == 0) {
			// 	uni.navigateTo({
			// 		url: "/uni_modules/abu_user_info/pages/abu_user_info/add",
			// 		success: res => {},
			// 		fail: () => {},
			// 		complete: () => {}
			// 	});
			// }
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import url("/components/iconfont/iconfont.css");
	@import url("/common/common.scss");
</style>